import java.util.Scanner;

public class 超市采购 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        double sum=0;
        int n=0;
        for (int i=0;i<10;i++){
            n++;
            System.out.println("请输入第"+n+"件商品价格：");
            double price =scanner.nextDouble();
            System.out.println("第"+n+"件商品价格为："+price);
            sum+=price;
        }System.out.println("总价格为："+sum+"元");
    }
}
